Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop 3.8 support #1604

Merged
merged 8 commits into from
Jan 22, 2025
Merged

Drop 3.8 support #1604

merged 8 commits into from
Jan 22, 2025

Conversation

sydney-runkle
Copy link
Member

Paired with pydantic/pydantic#11258 on the pydantic end

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

otherwise LGTM

tests/conftest.py Outdated Show resolved Hide resolved
tests/validators/test_tuple.py Outdated Show resolved Hide resolved
return {
'type': 'dict',
'keys_schema': get_schema(obj.__args__[0], definitions),
'values_schema': get_schema(obj.__args__[1], definitions),
}
elif issubclass(origin, Type):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right?

Copy link
Member

@Viicos Viicos Jan 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know if this is documented in Python, but typing.* aliases define __subclasscheck__ so this works as expected. Still, using the builtin type is way cleaner.

Copy link

codspeed-hq bot commented Jan 21, 2025

CodSpeed Performance Report

Merging #1604 will not alter performance

Comparing drop-3-8-support (5d12752) with main (e572f55)

Summary

✅ 157 untouched benchmarks

Copy link
Contributor

@davidhewitt davidhewitt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Very diligent to go clean up all the type hints too :)

pyproject.toml Outdated Show resolved Hide resolved
@sydney-runkle sydney-runkle enabled auto-merge (squash) January 22, 2025 19:36
@sydney-runkle sydney-runkle merged commit b426cce into main Jan 22, 2025
29 checks passed
@sydney-runkle sydney-runkle deleted the drop-3-8-support branch January 22, 2025 19:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants